export default [
  {
    path: '/race',
    name: 'race',
    component: resolve => require(['views/race'], resolve)
  },
  {
    path: '/race/detail/index', // 查看赛事入口至赛事详情
    component: resolve => require(['views/race/Detail'], resolve),
    children: [ // 查看赛事tab页面
      {
        path: '/race/detail/index', // 赛事详情
        component: resolve => require(['views/race/DetailIndex'], resolve)
      },
      {
        path: '/race/detail/rule', // 赛事章程
        component: resolve => require(['views/race/Rule'], resolve)
      },
      {
        path: '/race/detail/rule/edit', // 赛事章程编辑
        component: resolve => require(['views/race/RuleEdit'], resolve)
      },
      {
        path: '/race/detail/manage', // 赛事管理
        component: resolve => require(['views/race/Manage'], resolve)
      },
      {
        path: '/race/detail/manage/matchedit', // 单场比赛编辑
        component: resolve => require(['views/race/MatchEdit'], resolve)
      },
      {
        path: '/race/detail/notice', // 赛事公告
        name: 'MatchNotice',
        component: resolve => require(['views/race/MatchNotice'], resolve),
        children: []
      },
      {
        path: '/race/detail/notice/publish', // 发布赛事公告
        name: 'PublishNotice',
        component: resolve => require(['views/race/NoticeEdit'], resolve)
      },
      {
        path: '/race/detail/notice/edit/:id', // 编辑赛事公告
        name: 'NoticeEdit',
        component: resolve => require(['views/race/NoticeEdit'], resolve)
      },
      {
        path: '/race/detail/notice/:id', // 赛事公告正文
        name: 'NoticeItem',
        component: resolve => require(['views/race/NoticeItem'], resolve)
      },
      {
        path: '/race/detail/player', // 参赛者管理(团体&&个人)
        component: resolve => require(['views/race/ManageList'], resolve)
      },
      {
        path: '/race/detail/player/team/', // 参赛者球队详情
        component: resolve => require(['views/race/components/TeamMember'], resolve)
      },
      {
        path: '/race/detail/player/invite', // 个人参赛者邀请
        component: resolve => require(['views/race/Invite'], resolve)
      },
      {
        path: '/race/detail/player/invite-team', // 球队参赛者邀请
        name: 'inviteTeam',
        component: resolve => require(['views/race/InviteTeam'], resolve)
      },
      {
        path: '/race/detail/manage/preview', // 赛程预览(积分双循环)
        name: 'schedulePreview',
        component: resolve => require(['views/race/SchedulePreview'], resolve)
      },
      {
        path: '/race/detail/manage/edit', // 赛程编辑
        name: 'scheduleEdit',
        component: resolve => require(['views/race/ScheduleEdit'], resolve)
      },
      {
        path: '/race/detail/manage/generate', // 赛程生成（淘汰赛）
        name: 'scheduleGenerate',
        component: resolve => require(['views/race/ScheduleGenerate'], resolve)
      },
      {
        path: '/race/detail/channel', // 报名渠道管理(跑步)
        name: 'channel',
        component: resolve => require(['views/race/Channel'], resolve)
      },
      {
        path: '/race/detail/rank', // 积分榜
        component: resolve => require(['views/race/Rank'], resolve)
      },
      {
        path: '/race/detail/manage/markseed', // 标记种子队/选手
        component: resolve => require(['views/race/MarkSeed'], resolve)
      },
      {
        path: '/race/detail/manage/createsigntable', // 手动生成签表-淘汰赛
        component: resolve => require(['views/race/CreateSigntable'], resolve)
      },
      {
        path: '/race/detail/manage/checktable', // 签表
        component: resolve => require(['views/race/CheckTable'], resolve)
      },
      {
        path: '/race/detail/manage/schedulecheck', // 签表赛程
        component: resolve => require(['views/race/ScheduleCheck'], resolve)
      },
      {
        path: '/race/detail/manage/group', // 杯赛（分组）
        component: resolve => require(['views/race/Group'], resolve)
      },
      {
        path: '/race/detail/manage/cup', // 杯赛（已分组）
        component: resolve => require(['views/race/Cup'], resolve)
      },
      {
        path: '/race/detail/manage/schedulepre', // 赛程预览(杯赛)
        component: resolve => require(['views/race/ScheduleCup'], resolve)
      },
      {
        path: '/race/detail/manage/schedulecup', // 杯赛赛程
        component: resolve => require(['views/race/ScheduleCup'], resolve)
      },
      {
        path: '/race/detail/player/matchMember', // 添加参赛成员
        component: resolve => require(['views/race/MatchMember'], resolve)
      },
      {
        path: '/race/detail/player/createClub', // 创建俱乐部
        component: resolve => require(['views/race/CreateClub'], resolve)
      }
    ]
  },
  {
    path: '/race/release',
    name: 'raceRelease',
    component: resolve => require(['views/race/Release'], resolve)
  },
  {
    path: '/history',
    name: 'history',
    component: resolve => require(['views/history/index'], resolve)
  },
  {
    path: '/history/detail/index', // 赛事历史入口
    component: resolve => require(['views/race/Detail'], resolve),
    children: [ // 赛事历史tab页面
      {
        path: '/history/detail/index', // 赛事详情
        component: resolve => require(['views/race/DetailIndex'], resolve)
      },
      {
        path: '/history/detail/rule', // 赛事章程
        component: resolve => require(['views/race/Rule'], resolve)
      },
      {
        path: '/history/detail/rule/edit', // 赛事章程编辑
        component: resolve => require(['views/race/RuleEdit'], resolve)
      },
      {
        path: '/history/detail/manage', // 赛事管理
        component: resolve => require(['views/race/Manage'], resolve)
      },
      {
        path: '/history/detail/manage/matchedit', // 赛事编辑
        component: resolve => require(['views/race/MatchEdit'], resolve)
      },
      {
        path: '/history/detail/notice', // 赛事公告
        component: resolve => require(['views/race/MatchNotice'], resolve),
        children: []
      },
      {
        path: '/history/detail/notice/publish', // 发布赛事公告
        component: resolve => require(['views/race/NoticeEdit'], resolve)
      },
      {
        path: '/history/detail/notice/edit/:id', // 编辑赛事公告
        component: resolve => require(['views/race/NoticeEdit'], resolve)
      },
      {
        path: '/history/detail/notice/:id', // 赛事公告正文
        component: resolve => require(['views/race/NoticeItem'], resolve)
      },
      {
        path: '/history/detail/player', // 参赛者管理(团体&&个人)
        component: resolve => require(['views/race/HistoryManage'], resolve)
      },
      {
        path: '/history/detail/player/team/:id', // 参赛者球队详情
        component: resolve => require(['views/race/components/TeamMember'], resolve)
      },
      {
        path: '/history/detail/player/invite', // 个人参赛者邀请
        component: resolve => require(['views/race/Invite'], resolve)
      },
      {
        path: '/history/detail/player/invite-team', // 球队参赛者邀请
        component: resolve => require(['views/race/InviteTeam'], resolve)
      },
      {
        path: '/history/detail/manage/preview', // 赛事历史赛程
        component: resolve => require(['views/race/SchedulePreview'], resolve)
      },
      {
        path: '/history/detail/rank', // 积分榜
        component: resolve => require(['views/race/Rank'], resolve)
      },
      {
        path: '/history/detail/channel', // 报名渠道管理(跑步)
        component: resolve => require(['views/race/Channel'], resolve)
      }
    ]
  }
]
